from django.shortcuts import render
from django.http import HttpResponse
from .. models import Order

# from .. models import Users
# Create your views here.
def orderlist(request):
	# 根据 session的用户id.获取当前用户的所有订单
	
	orders = Order.objects.all()

	context = {'orders':orders}


	return render(request,'admin/cart/orderlist.html',context)
